package com.worldcup.dao;

import com.worldcup.model.CountrySupport;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * duwan.zq
 */
@Mapper
@Repository
public interface CountrySupportMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CountrySupport record);

    int insertSelective(CountrySupport record);

    CountrySupport selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CountrySupport record);

    int updateByPrimaryKey(CountrySupport record);

    /**
     * 获取指定用户最新投票
     * @param openid
     * @return
     */
    CountrySupport selectLast(String openid);
}